<?php

namespace common\models\memtrack;

use Yii;
use yii\behaviors\TimestampBehavior;
/**
 * This is the model class for table "memtrack".
 *
 * @property integer $id
 * @property string $name
 * @property string $category
 * @property string $member
 * @property integer $memberid
 * @property integer $start_time
 * @property integer $end_time
 * @property string $content
 * @property integer $created_at
 * @property integer $updated_at
 * @property integer $status
 */
class Memtrack extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'memtrack';
    }
    public function behaviors()
    {
        return [
            [
                'class' => TimestampBehavior::className(),
            ],
        ];
    }
    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['memberid'], 'integer'],
            [['content'], 'string'],
            [['name', 'category', 'member'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'name' => Yii::t('app', 'Name'),
            'category' => Yii::t('app', '任务类型'),
            'member' => Yii::t('app', '会员'),
            'memberid' => Yii::t('app', 'Memberid'),
            'start_time' => Yii::t('app', '开始时间'),
            'end_time' => Yii::t('app', '截止时间'),
            'content' => Yii::t('app', '描述'),
            'created_at' => Yii::t('app', 'Created At'),
            'updated_at' => Yii::t('app', 'Updated At'),
            'status' => Yii::t('app', 'Status'),
        ];
    }
}
